package com.technology.education.dslitem.module

import androidx.core.os.bundleOf
import com.angcyo.dsladapter.DslAdapterItem
import com.angcyo.dsladapter.DslViewHolder
import com.technology.education.R
import com.technology.education.ext.navigation

class ItemWithdrawRecord : DslAdapterItem() {
    init {
        itemLayoutId = R.layout.item_withdraw_record
    }

    override fun onItemBind(
        itemHolder: DslViewHolder,
        itemPosition: Int,
        adapterItem: DslAdapterItem,
        payloads: List<Any>
    ) {
        super.onItemBind(itemHolder, itemPosition, adapterItem, payloads)
        itemHolder.tv(R.id.tv_money)?.text = ""
        itemHolder.tv(R.id.tv_status)?.text = ""
        itemHolder.tv(R.id.tv_date)?.text = ""
        itemHolder.clickItem {
            navigation(it, R.id.action_withdraw_record_to_detail, bundleOf("id" to ""))
        }
    }
}